﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace GestionePolveriLib.BL.Metadata
{
    public class ScortaMinimaMetadata
    {
        [Display(Name = "Codice Polvere", Order = 0)]
        public string CodicePolvere { get; set; }

        [Display(Name = "Descrizione", Order = 1)]
        public string Descrizione { get; set; }

        [Display(Name = "Note", Order = 2)]
        public string Note { get; set; }

        [Display(Name = "Scorta Minima", Order = 3)]
        public double ScortaMinima { get; set; }

        [Display(Name = "Kg", Order = 4)]
        public double? Giacenza { get; set; }

        [Display(Name = "Valore", Order = 5)]
        public double Valore { get; set; }

        [Display(Name = "Prezzo", Order = 6)]
        public double Prezzo { get; set; }

        [Display(Name = "Carico", Order = 7)]
        public double Carico { get; set; }

        [Display(Name = "Scarico", Order = 8)]
        public double Scarico { get; set; }

        [Display(Name = "Codice Custom", Order = 9)]
        public bool IsCodiceCustom { get; set; }

        [Display(Name = "Fornitore", Order = 10)]
        public string FornitoreDescrizione { get { return (Fornitore == null ? string.Empty : Fornitore.Descrizione); } }

        [Display(Name = "Fornitore2", Order = 11)]
        public Fornitore Fornitore { get; set; }
    }
}
